package interfaces;

import javax.swing.Icon;
import javax.swing.JOptionPane;
/**
 * @author Savva
 *
 */
public class MyConfirmDialog {
	  private static Object[] options = { "Да", "Нет" };
      
      public static int showDialog(String message, String title, int messageType, Icon icon) {
    	  return JOptionPane.showOptionDialog(null, message, title,
    		      JOptionPane.DEFAULT_OPTION, messageType,
    		      icon, options, options[0]);
      }
}
